.code-monitoring-node {
    // stylelint-disable-next-line declaration-property-unit-whitelist
    margin: -1px -1px calc(0.5rem - 1px) -1px;
    color: var(--link-hover-color);

    &__toggle-wrapper {
        // stylelint-disable-next-line declaration-property-unit-whitelist
        margin-top: 1px; // For visual alignment with the edit button
    }

    &__edit-button {
        padding: 0;
    }

    &:hover {
        text-decoration: none;
        border: 2px solid #329af0;
        // stylelint-disable-next-line declaration-property-unit-whitelist
        margin: -2px -2px calc(0.5rem - 2px) -2px;
    }

    // We override the margins of the last .code-monitoring-node
    // to prevent .filtered-connection__summary below from shifting
    &:last-child {
        // stylelint-disable-next-line declaration-property-unit-whitelist
        margin-bottom: -1px;
    }

    &:last-child:hover {
        // stylelint-disable-next-line declaration-property-unit-whitelist
        margin-bottom: -2px;
    }
}
